import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import DefineOptions from 'unplugin-vue-define-options/vite' // 引入插件
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), DefineOptions()],
  base: './',
  server: {
    hmr: {
      overlay: true
    }
  },
  resolve: {
    alias:{
      '@':  path.resolve(__dirname, 'src') }
  }
})
